package com.leapp.sk.viewdelegate.adapter.level

import android.widget.ImageView
import com.example.mvp.delegate.BaseAdapterDelegate
import com.leapp.sk.R
import com.leapp.sk.bean.LevelEntity

/**
 * 老师端请假
 * @author  chaohaipeng  on 2018/8/13.
 */
class TeacherLeaveAdapterDelegate : BaseAdapterDelegate(){
    override fun getOptionsMenuId(): Int {
        return 0
    }

    override fun initWidget() {
    }

    override fun onDestroy() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.adapter_teacher_leave
    }
    fun setData(data: LevelEntity,isApproveds:Boolean){
       val iv_atl_confirm=getView<ImageView>(R.id.iv_atl_confirm)
        if (isApproveds){
            iv_atl_confirm.setImageResource(R.mipmap.icon_confirm)
        }else{
            iv_atl_confirm.setImageResource(R.mipmap.icon_confirm_received)
        }
    }

}